package org.example.forum.service;

import org.example.forum.model.Message;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IMessageService {
    List<Message> selectByReceiveUserId (Long receiveUserId);
    Message selectById(Long id);

    void updateStateById(Long id, byte b);
    @Transactional
    void reply (Long repliedId, Message message);

    Integer selectUnreadCount(Long id);

    void create(Message message);
}
